<?php
namespace Admin\Controller;
use Think\Controller;
class VerifyController extends Controller {
	/**
	 * 生成验证码
	 * @return [type] [description]
	 */
    public function codeImg(){
    	$id 	= I('id',1);
    	$lenght = I('length',4);
    	$config =    array(    
	    	'fontSize'	=> 30,    // 验证码字体大小    
	    	'length'	=> $lenght,     // 验证码位数    
	    	'useNoise'	=> false, // 关闭验证码杂点
	    	'fontttf'	=> '4.ttf',
	    	'useNoise'	=> true,
    	);
    	$Verify = new \Think\Verify($config); 
    	$Verify->entry($id);

    }
}